<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>find方法</title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				let d=$("#d1");
				d.find("div a").css("color","red");
			});
		</script>
	</head>
	<body>
		<div id="d1">
			<h1>教育改变生活</h1>
			<div>
				<a href="">111</a><a href="">222</a><a href="">333</a><a href="">444</a><a href="">5555</a>
			</div>
			<p>
				<a href="">aaaa</a><a href="">bbbbbbb</a><a href="">ccccc</a>
			</p>
		</div>
	</body>
</html>
